import request from "./service.js"
// /pc/user/login   登录
export function login(params) {
	return request({
		url: '/pc/user/login',
		method: 'post',
		data: params
	})
}
// /pc/question/brush   顺序练习
export function order(params) {
	return request({
		url: '/pc/question/'+params.apiType,
		method: 'post',
		data: params
	})
}
// /brush/menu/list/tree 查询所有的题库
export function listtree(params) {
	return request({
		url: '/brush/menu/list/tree',
		method: 'get' 
	})
}

// get /pc/question/findMockRecord/{userId}

export function findMockRecord(params) {
	return request({
		url: '/pc/question/findMockRecord/'+params.userId,
		method: 'get' 
	})
}
// /pc/question/error 错题练习
export function error(params) {
	return request({
		url: '/pc/question/error',
		method: 'post' ,
		data: params
	})
}
// /pc/question/chapter 章节刷题
export function chapter(params) {
	return request({
		url: '/pc/question/chapter',
		method: 'post' ,
		data: params
	})
}

// /pc/question/mock 模拟测试
export function mock(params) {
	return request({
		url: '/pc/question/mock',
		method: 'post' ,
		data: params
	})
}

// /pc/question/saveMockRecord  模拟测试记录
export function saveMockRecord(params) {
	return request({
		url: '/pc/question/saveMockRecord',
		method: 'post' ,
		data: params
	})
}


// /pc/question/saveError 错题存储、
export function saveError(params) {
	return request({
		url: '/pc/question/saveError',
		method: 'post' ,
		data: params
	})
}

// /pc/question/error  错题模式
export function errorLog(params) {
	return request({
		url: '/pc/question/error',
		method: 'post' ,
		data: params
	})
}

// /pc/question/errorDelete  删除错题记录
export function errorDelete(params) {
	return request({
		url: '/pc/question/errorDelete',
		method: 'post' ,
		data: params
	})
}
